<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php if($meta_title != ''): echo ($meta_title); ?>-<?php endif; echo C('website.title');?></title>
<meta name="keywords" content="<?php echo C('website.keywords');?>"/>
<meta name="description" content="<?php echo C('website.desc');?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/public/Home/dist/css/zui.css">
<link rel="stylesheet" href="/public/Home/dist/css/zui-theme.css">
<link rel="stylesheet" href="/public/Home/common/css/style.css">
<script type="text/javascript" src="/public/Home/dist/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="/public/Home/dist/js/zui.js"></script>
<script type="text/javascript" src="/public/Home/dist/lib/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="/public/Home/assets/css/simditor.css" />
<script type="text/javascript" src="/public/Home/assets/js/module.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/hotkeys.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/uploader.min.js"></script>
<script type="text/javascript" src="/public/Home/assets/js/simditor.min.js"></script>


</head>
<body>
<div class="header-index-fix"></div>
<div class="header">
    <div class="container-fixed">
        <div class="header-left">
            <a href="#"><img src="<?php echo getImgidpath(C('website.logo'));?>" alt=""></a>
        </div>
        <div class="header-right">
            <ul class="header-nav">
                <li <?php if($mark == 'index'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('index/index');?>">项目大厅</a>
                </li>
                <li <?php if($mark == 'rank'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('rank/index');?>">排行榜</a>
                </li>
                <li <?php if($mark == 'article'): ?>class="active"<?php endif; ?>>
                    <a href="<?php echo U('article/index');?>">资讯</a>
                </li>
                <li <?php if($mark == 'company'): ?>class="dropdown dropdown-hover active"<?php else: ?>class="dropdown dropdown-hover"<?php endif; ?>>
                    <a href="#" data-toggle="dropdown">企业服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="<?php echo U('bug/index');?>">漏洞认领</a>
                        </li>
                        <li>
                            <a href="<?php echo U('company/index');?>">入驻企业</a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown dropdown-hover">
                    <a href="#" data-toggle="dropdown">白帽服务 <span class="drop-arrow"></span></a>
                    <ul class="dropdown-menu drop-nav">
                        <li>
                            <a href="<?php echo U('index/index');?>">技术知识分享</a>
                        </li>
                        <li>
                            <a href="<?php echo U('index/index');?>">等级与福利</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="<?php echo U('bbs/index');?>">论坛</a>
                </li>
            </ul>
            <div class="header-user">
                <div class="user-btns">
                    <div class="dropdown">
                        <button class="btn btn-primary" type="button" data-toggle="dropdown">提交 <span class="caret"></span></button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="<?php echo U('bug/post');?>">提交漏洞</a></li>
                            <li class="divider"></li>
                            <li><a href="<?php echo U('project/post');?>">提交项目</a></li>
                        </ul>
                    </div>
                </div>
                <div class="user-login">
                    <?php if($_SESSION['user']== null): ?><a href="<?php echo U('user/login');?>">登录</a>
                    <a href="<?php echo U('user/register');?>">注册</a>
                    <?php else: ?>
                        <a href="<?php echo U('user/member');?>"><?php echo ($_SESSION['user']['username']); ?></a><?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>


    <div class="main">
        <div class="news">
            <div class="container-fixed">
                <div class="row">
                    <div class="col-xs-3">
                        <div class="news-post">
                            <a href="#" class="btn btn-block btn-primary"><i class="icon icon-pencil"></i> 我要投稿</a>
                        </div>
                        <div class="panel">
                            <div class="panel-heading">
                                <h4>栏目分类</h4>
                            </div>
                            <div class="panel-body">
                                <div class="column-list">
                                    <?php if(is_array($columns)): $i = 0; $__LIST__ = $columns;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($mid == $vo['id']): ?><a href="<?php echo U('article/index',array('cid'=>$cid,'mid'=>$vo['id']));?>" class="btn btn-sm btn-primary"><?php echo ($vo['title']); ?></a>
                                        <?php else: ?>
                                            <a href="<?php echo U('article/index',array('cid'=>$cid,'mid'=>$vo['id']));?>" class="btn btn-sm btn-default"><?php echo ($vo['title']); ?></a><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-9">
                        <div class="panel">
                            <div class="panel-heading">
                                <h3>新闻资讯</h3>
                                <div class="pull-right">
                                    <div class="btn-group news-tab">
                                        <?php if(is_array($columnlist)): $i = 0; $__LIST__ = $columnlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($cid == $vo['id']): ?><a href="<?php echo U('article/index',array('cid'=>$vo['id'],'mid'=>0));?>" class="btn btn-primary"><?php echo ($vo['title']); ?></a>
                                            <?php else: ?>
                                                <a href="<?php echo U('article/index',array('cid'=>$vo['id'],'mid'=>0));?>" class="btn btn-default"><?php echo ($vo['title']); ?></a><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-body">
                                <div class="news-list">
                                    <ul>
                                        <?php if(is_array($articlelist)): $i = 0; $__LIST__ = $articlelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('article/detail',array('id'=>$vo['id']));?>" target="_blank"><?php echo ($vo["title"]); ?> </a><span class="time"><?php echo (date("y-m-d",$vo["ctime"])); ?></span></li><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </ul>
                                </div>
                                <?php echo ($pageshow); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<div class="footer">
    <div class="container">
        <div class="footer-list">
            <ul>
                <li><a href="<?php echo U('index/index');?>" target="_blank">项目大厅</a></li>
                <li><a href="<?php echo U('rank/index');?>" target="_blank">排行榜</a></li>
                <li><a href="<?php echo U('user/index');?>" target="_blank">个人主页</a></li>
                <li><a href="#" target="_blank">帮助中心</a></li>
            </ul>
        </div>

        <div class="footer-bom">
        	<div>
        		 <?php echo C('website.recard');?>	<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>  <?php echo C('website.copyright');?>
        	</div>
        </div>
    </div>
</div>


</body>
</html>